package com.scenic.orderservice.mapper;

import com.scenic.common.bean.Order;

import java.util.List;

public interface OrderMapper {
    //添加订单
    int insert(Order order);
    //用户修改订单
    int update(Order order);
    //用户软删除订单
    int delete(Integer id);
    //根据用户id查询订单
    List<Order> selectByUserId(Integer userId);
    //根据订单id查询订单
    Order selectById(String id);
    List<Order> selectByCondition(Order condition);

    //List<Order> selectByUserAll(Order condition);
}
